package eb;

import java.sql.Timestamp;

public class Commodity {
	private String CommodityName;
	private int ClassID;
	private String Introduction;
	private String ImageURL;
	private float MarketPrice;
	private float HotPrice;
	private enum Discount{Yes,No};
	Discount IsDiscount;
	private Timestamp LoadDate;
	Commodity(String ComName,int ID,String Intro,String URL,float MPrice,float HPrice,int IsDiscount,Timestamp time ){
		this.CommodityName=ComName;
		this.ClassID=ID;
		this.Introduction=Intro;
		this.ImageURL=URL;
		this.MarketPrice=MPrice;
		this.HotPrice=HPrice;
		if(IsDiscount==0){
			this.IsDiscount=Discount.Yes;
		}
		else{
			this.IsDiscount=Discount.No;
		}
		this.LoadDate=time;
	}
	private String GetName(){
		return this.CommodityName;
	}
	private int GetID(){
		return this.ClassID;
	}
	private String GetIntr(){
		return this.Introduction;
	}
}
